package com.maolong.spring.context.support;

/**
 * ClassPathXmlApplicationContext的上下文;
 */
public class ClassPathXmlApplicationContext extends  AbstractXmlApplicationContext{

    private String[]  configLocations;

    ClassPathXmlApplicationContext(){
        this(new String[]{"classPath:spring.xml"});
    }

    ClassPathXmlApplicationContext (String configLocation){
        this(new String[]{configLocation});
    }

     ClassPathXmlApplicationContext (String[] configLocations){
        if (configLocations!=null){
            this.configLocations = configLocations;
            refresh();
        }
    }


    @Override
    protected String[] getConfigLocations() {
        return configLocations;
    }
}
